import { instanceaxios } from './requets'

export function banner(cityId, type) {
  return instanceaxios('/gateway', {
    headers: {
      'X-Host': 'mall.cfg.common-banner'
    },
    params: {
      type,
      cityId,
      k: 5109090
    }
  })
}

export function movieList(num, type, cityId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.film.list'
    },
    params: {
      cityId,
      pageNum: num,
      pageSize: 10,
      type: type,
      k: 5109090
    }
  })
}
